package com.linzm.biz.impl;

import com.linzm.biz.OrderService;
import com.linzm.biz.UserService;
import com.linzm.entry.Order;
import com.linzm.entry.User;
import com.linzm.annotation.Autowired;
import com.linzm.annotation.Component;

/**
 * @Date: 2023/11/9 0:06
 * @User linziming
 */
@Component
public class OrderServiceImpl implements OrderService {
    @Autowired
    private UserService userServiceImpl;

    @Override
    public Order getOrder(String id) {
        User user = userServiceImpl.getUser("1");
        Order order = new Order();
        order.setId("order-1");
        order.setName("user");
        order.setUser(user);
        return order;
    }
}
